package com.zheng.umbrella.dao.model;

import java.io.Serializable;
import java.util.Date;

public class UmbrellaHardwareMachineVersion implements Serializable {
    private Integer id;

    /**
     * 机器码
     *
     * @mbg.generated
     */
    private String machineCode;

    /**
     * 元件族
     *
     * @mbg.generated
     */
    private String family;

    /**
     * 闪存大小
     *
     * @mbg.generated
     */
    private String flashsize;

    /**
     * 静态内存大小
     *
     * @mbg.generated
     */
    private String sramsize;

    /**
     * 设备id
     *
     * @mbg.generated
     */
    private String deviceid;

    /**
     * 设备码
     *
     * @mbg.generated
     */
    private String devicecode;

    /**
     * IAP版本
     *
     * @mbg.generated
     */
    private String iapversion;

    /**
     * 系列号
     *
     * @mbg.generated
     */
    private String serialnumber;

    /**
     * 硬件版本
     *
     * @mbg.generated
     */
    private String hardwareversion;

    /**
     * 软件版本
     *
     * @mbg.generated
     */
    private String softwareversion;

    /**
     * 固件大小
     *
     * @mbg.generated
     */
    private String imagesize;

    private Date createtime;

    private Date updatetime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMachineCode() {
        return machineCode;
    }

    public void setMachineCode(String machineCode) {
        this.machineCode = machineCode;
    }

    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family;
    }

    public String getFlashsize() {
        return flashsize;
    }

    public void setFlashsize(String flashsize) {
        this.flashsize = flashsize;
    }

    public String getSramsize() {
        return sramsize;
    }

    public void setSramsize(String sramsize) {
        this.sramsize = sramsize;
    }

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    public String getDevicecode() {
        return devicecode;
    }

    public void setDevicecode(String devicecode) {
        this.devicecode = devicecode;
    }

    public String getIapversion() {
        return iapversion;
    }

    public void setIapversion(String iapversion) {
        this.iapversion = iapversion;
    }

    public String getSerialnumber() {
        return serialnumber;
    }

    public void setSerialnumber(String serialnumber) {
        this.serialnumber = serialnumber;
    }

    public String getHardwareversion() {
        return hardwareversion;
    }

    public void setHardwareversion(String hardwareversion) {
        this.hardwareversion = hardwareversion;
    }

    public String getSoftwareversion() {
        return softwareversion;
    }

    public void setSoftwareversion(String softwareversion) {
        this.softwareversion = softwareversion;
    }

    public String getImagesize() {
        return imagesize;
    }

    public void setImagesize(String imagesize) {
        this.imagesize = imagesize;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", machineCode=").append(machineCode);
        sb.append(", family=").append(family);
        sb.append(", flashsize=").append(flashsize);
        sb.append(", sramsize=").append(sramsize);
        sb.append(", deviceid=").append(deviceid);
        sb.append(", devicecode=").append(devicecode);
        sb.append(", iapversion=").append(iapversion);
        sb.append(", serialnumber=").append(serialnumber);
        sb.append(", hardwareversion=").append(hardwareversion);
        sb.append(", softwareversion=").append(softwareversion);
        sb.append(", imagesize=").append(imagesize);
        sb.append(", createtime=").append(createtime);
        sb.append(", updatetime=").append(updatetime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UmbrellaHardwareMachineVersion other = (UmbrellaHardwareMachineVersion) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMachineCode() == null ? other.getMachineCode() == null : this.getMachineCode().equals(other.getMachineCode()))
            && (this.getFamily() == null ? other.getFamily() == null : this.getFamily().equals(other.getFamily()))
            && (this.getFlashsize() == null ? other.getFlashsize() == null : this.getFlashsize().equals(other.getFlashsize()))
            && (this.getSramsize() == null ? other.getSramsize() == null : this.getSramsize().equals(other.getSramsize()))
            && (this.getDeviceid() == null ? other.getDeviceid() == null : this.getDeviceid().equals(other.getDeviceid()))
            && (this.getDevicecode() == null ? other.getDevicecode() == null : this.getDevicecode().equals(other.getDevicecode()))
            && (this.getIapversion() == null ? other.getIapversion() == null : this.getIapversion().equals(other.getIapversion()))
            && (this.getSerialnumber() == null ? other.getSerialnumber() == null : this.getSerialnumber().equals(other.getSerialnumber()))
            && (this.getHardwareversion() == null ? other.getHardwareversion() == null : this.getHardwareversion().equals(other.getHardwareversion()))
            && (this.getSoftwareversion() == null ? other.getSoftwareversion() == null : this.getSoftwareversion().equals(other.getSoftwareversion()))
            && (this.getImagesize() == null ? other.getImagesize() == null : this.getImagesize().equals(other.getImagesize()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMachineCode() == null) ? 0 : getMachineCode().hashCode());
        result = prime * result + ((getFamily() == null) ? 0 : getFamily().hashCode());
        result = prime * result + ((getFlashsize() == null) ? 0 : getFlashsize().hashCode());
        result = prime * result + ((getSramsize() == null) ? 0 : getSramsize().hashCode());
        result = prime * result + ((getDeviceid() == null) ? 0 : getDeviceid().hashCode());
        result = prime * result + ((getDevicecode() == null) ? 0 : getDevicecode().hashCode());
        result = prime * result + ((getIapversion() == null) ? 0 : getIapversion().hashCode());
        result = prime * result + ((getSerialnumber() == null) ? 0 : getSerialnumber().hashCode());
        result = prime * result + ((getHardwareversion() == null) ? 0 : getHardwareversion().hashCode());
        result = prime * result + ((getSoftwareversion() == null) ? 0 : getSoftwareversion().hashCode());
        result = prime * result + ((getImagesize() == null) ? 0 : getImagesize().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        return result;
    }
}